import request from "@/request";

export default{
    //拿到所有用户
    getAllUser(){
        return request.post('/getAllUser').then(response=> response );
    },
    //更新幻灯片
    updateSlide(data){
        return request.post('/updateSlide',data).then(response=> response );
    },
    //获得幻灯片
    getSlide(){
        return request.post('/getSlide').then(response=> response );
    },
    //添加歌曲
    saveSong(data){
        return request.post('/saveSong',data).then(response=> response );
    },
    //删除歌曲
    deleteSong(data){
        return request.post('/deleteSong',data).then(response=> response );
    },
    //更改歌曲状态
    updateSong(data){
        return request.post('/updateSong',data).then(response=> response );
    },
    //得到所有精选歌曲
    getSongs(data){
        return request.get('/getSongs',data).then(response=> response );
    },
    //编辑歌曲
    updateSong1(data){
        return request.post('/updateSong1',data).then(response => response)
    },
    //更改评论状态
    updateComment(data){
        return request.post('/updateComment',data).then(response=> response );
    },
    //得到精选评论
    getCommentt(data){
        return request.get('/getCommentt',data).then(response=> response );
    },
    //删除评论
    deleteComment(data){
        return request.post('/deleteComment',data).then(response=> response );
    },
    //批量删除
    deleteComments(data){
        return request.post('/deleteComments',data).then(response=> response );
    },
    //保存歌曲图片
    savaImg(data){
        return request.post('/saveImg',data).then(response=> response.data );
    },
    //查询歌手或歌曲
   getSongOrSinger(data){
        return request.post('/getSongOrSinger',data).then(response=> response );
    },
    //模糊查询歌曲
    getSongRegex(data){
        return request.post('/getSongRegex',data).then(response=> response );
    },
    //模糊查询歌手
    getSingerRegex(data){
        return request.post('/getSingerRegex',data).then(response=> response );
    },
    //模糊查询评论
    getComment1(data){
        return request.post('/getComment1',data).then(response=> response );
    },
    //模糊查询用户
    getUserOrNick(data){
        return request.post('/getUserOrNick',data).then(response=> response );
    },

}